<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 自定义配置
// +----------------------------------------------------------------------
return [
    'public_api_key' => '79ef6707166953c847de5bf86d9657c7', //对外接口公共密钥
    'upload_subdir'  => 'Ym',                                                                 //文件上传二级目录 标准的日期格式
    'nocheck'        => ['admin/Login/verify', 'admin/Login/index', 'admin/Login/logout', 'admin/Login/sendSms'],    //不需要验证权限的url
    'error_log_code' => 500,                                                                  //写入日志的状态码

    'password_secrect' => 'daxin@123',            //密码加密秘钥

    'multiple_login' => true,            //总后台是否开启多设备登录 true多设备登录 false单设备登录

    'dump_extension' => 'xlsx',                          //默认导出格式
    // 'verify_status'  => true,                           //后台登录验证码开关
    'verify_status'  => false,                           //后台登录验证码开关
    'water_img'      => './static/images/water.png',     //水印图片路径

    'check_file_status' => true,            //上传图片是否检测图片存在


    'show_notice'              => false,                                                //是否显示头部的的消息提示按钮,
    'show_home_menu'           => false,                                               //是否显示首页快捷导航
    'show_home_chats'          => true,                                                //是否显示首页图表

    //api基本配置
    'jwtExpireCode'            => 101,                                                 //jwt过期
    'jwtErrorCode'             => 102,                                                 //jwt无效

    //聚合短信配置
    'juhe_sms_key'             => '3420d7egshdjhshjdsh77776767c373f4b4ac',             //key
    'juhe_sms_tempCode'        => '11205725',                                          //短信验证码模板

    //极速短信配置
    'jisu_sms_key'             => '892d93ac22b27ee9',                                  //key
    'jisu_sms_tempCode'        => '20492',                                             //短信验证码模板

    //阿里云短信配置
    'ali_sms_accessKeyId'      => 'LTAI5tHioTCmGMqEAKPr3hBA',                          //阿里云短信 keyId
    'ali_sms_accessKeySecret'  => 'Xe0gbqO1ZeJVfJ8EMSwMQ9WBJOGtlZ',                    //阿里云短信 keysecret
    'ali_sms_signname'         => '云织就',                                          //签名
    'ali_sms_tempCode'         => 'SMS_464345390',                                     //短信模板 Code

    //oss开启状态 以及配置指定oss
    'oss_status'               => false,                                                //true启用  false 不启用
    'oss_upload_type'          => 'server',                                            //client 客户端直传  server 服务端传
    'oss_default_type'         => 'ali',                                               //oss使用类别 则使用ali的oss  qiniuyun 则使用七牛云oss

    //阿里云oss配置
    'ali_oss_accessKeyId'      => 'LTAI5tRRF8igNSPmNVKoMLhf',                          //阿里云短信 keyId
    'ali_oss_accessKeySecret'  => '1WNPG4wFzxKWkIzmQ3IGaU5Af5NWOv',                    //阿里云短信 keysecret
    'ali_oss_endpoint'         => 'https://cdn.paihome.cn',                            //建议填写自己绑定的域名
    'ali_oss_bucket'           => 'dx-massage',                                        //阿里bucket

    //七牛云oss配置
    'qny_oss_accessKey'        => 'bm1sR9bx0F5HK7KYq2RhZMJ8zOxb-HCGYx5pJU',            //access_key
    'qny_oss_secretKey'        => 'YrRaySbqu7PIzZHOguJMT0ObUdb7GBPRiYa7Lq',            //secret_key
    'qny_oss_bucket'           => 'vueadmin',                                          //bucket
    'qny_oss_domain'           => 'http://images.vueadmin.vip',                        //七牛云访问的域名
    'qny_oss_client_uploadurl' => 'http://up-z0.qiniup.com',                           //七牛云客户端直传上传地址 不用动如果提示地址错误 根据提示换就行

    //api jwt鉴权配置
    'jwt_expire_time'          => 3600 * 24,                                           //token过期时间24小时
    'jwt_secrect'              => 'boTCfOGKwqTNKArT',                                  //签名秘钥
    'jwt_iss'                  => 'client.vueadmin',                                   //发送端
    'jwt_aud'                  => 'server.vueadmin',                                   //接收端

    'api_upload_auth' => true,    //api应用上传是否验证token  true 验证 false不验证 需要重新生成

    //文件注释
    'comment'         => [
        'api_comment'  => true,    //api接口详细注释 true生成 false不生成
        'file_comment' => true,    //文件头部注释  true生成 false不生成
        'author'       => '',
        'contact'      => '',
    ],
    'image_server' => 'https://'.$_SERVER['HTTP_HOST'],
    // 腾讯语音通知
    'tencent_vms' => [
        'VoiceSdkAppid' => '1400711800',
        'secretId' => 'AKIDzpUyPwGKCrHSN2SdZGhtpW1KODpDLErE',
        'secretKey' => 'FG2asugCTVHn6B1bw1sTpwnPlyvd5IGy',
    ],
    'mini_program' => [ //微信小程序
        'app_id'    => 'wxf2206033f3704b52',
        'secret'    => '3222b6c19df40db94c607c39d93e0b1e',
        'token'     => '',
        'log' => [
            'level' => 'debug',
            'file'  => '/tmp/easywechat.log',
        ],
    ],
    'pay_config' => [
        'alipay' => [
            'default' => [
                // 必填-支付宝分配的 app_id
                'app_id'                  => '2021003131691243',
                // 必填-应用私钥 字符串或路径
                'app_secret_cert'         => 'MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCXuRmIETSfbOnWyv4Nq9DJeKDSOkse+DCsp1qwlPnzH8LZ+abx1rkcWmWs0JP8d16lM8COUwh21ZC64oFwQv1wknYTkV01PrFqrpWBKnH0h0XqrpDoB5P9Ho4Z4t8jJ9hJpjvZbGtcLPP26g4XAFCwBBptz6mR2PmE4+Cu0ZMrI+/uMoNM5aBVmCLMP+HpxnCHo7/Ik4vHcFo4FSRuCqZArbyTcoyeYfZrm3q3DbrqItEUx6w3SsINqTdctwx1Ql3o7BI5OsYqa11mOHw3w3ddZzIZM2ROV2oNRAb4u0GWmuKgPPBZALR5UHdTX2hxkqQEX/NhQoIvswSDWelQRtN5AgMBAAECggEAYpnxpMMBvuYKJgQwDPRvMK/LXDR0I4FKKLpuLrnyonUurXgYbayNCocY8rFuqzFsedJjPltp8cijUUDou+tdR653PApJV9QRevJQyOuruS28W2LtW02peGNGGD6fovo/DsYQuSFDuFiiiAHd/EbBKVLRVjIR0m3+4sUxfItIqEynRWuKAVzSc8fd/HxwMyP9Nn3zSJkfzDTJAUcc8IOLGIfO1phfc0MUrqrEk0ql8Jg6rFwp96yBmYeF+SHGFqa8ZWwc7/d8lXZ8qOa8w6Mx0unVRXS65jtNfog0pLpnvpXARunCeZbf3ljWbnCcQBjlqmmEj9bBmvg9ckv/ueYp3QKBgQDMsb4MFVSD0ucIq4DNvPqcpuZWguIhhaKBwcrVJrPAbY28KBaS9M6Ekcx5JL9h0F27NSABKQ1YlwYPNxWrQG8c5B8cUFb8zbJ28eW7tH6jcIGMkKxhTYx3MVi8kbGkgQBmzQlQ2XEm5jsgenSyUTy5JD/N9aOJzYu3QOnmqMm4EwKBgQC9wHG0STQB4rv1bkNpT//fL+MkN+6jI9NO13U37fO33FoZNHTms3LCVDyuYjUYi3LNzWO4wsqPAwWEq9BaCHe0kRSRxYtolboYeQb3MgwMYgLEY+qcu2FlqeTpioYxlv3v2EMtIaFMvHl6aSX8AgwJL3WLuDyoQD4IF3Vp75+PwwKBgC7WbPou10vismLVe3+YQnAd8I7THBM3lNvEEDl9xZu+dbQcKC4wPiEvi24c7n3fQ9NWcKBTWG5xAD3zCM5KzCH8QPIloAHwv2lgKIUu49taHwqfABKzv/R2Iivj2pYdvo3HVN5fIvkXrWfdHV7AH/jtRnxGPMmHcvTXsa3J6X5pAoGAL9wkUcbM+VTI98SR+DQXY6Hedros1LUqjQ5HII5CFLPdfdH/Ulkcrus0Sv+2SLSThlkxt95Z3Ox0LdxwNuU/3CljuMjMutpZD+cm3J6g71ahQAu7l0Cj9lJ9zHIGGufssNwpRW7gEkzPjxKKZB/YDVENIuqbUgyyGLRiBxBLfKUCgYBQGGgKEQKWfalH+rUZZwMeNQw2WVSKf2jB8FeL1j8egrhL9HHpjg7gMGfQ6d0A7Y9uhLPJ1LrdLG+WMnw+MNXUSZ65jQ77FSCqiIlm+we0Tuf+OQ1EjHhybzQ2iSE1/durwhgzLPKIVuzFmF5+Z90KdNJ3ziPFOu4nSSatlHcvqA==',
                // 必填-应用公钥证书 路径
                'app_public_cert_path'    => config_path('cert') . 'appCertPublicKey_2021003131691243.crt',
                // 必填-支付宝公钥证书 路径
                'alipay_public_cert_path' => config_path('cert') . 'alipayCertPublicKey_RSA2.crt',
                // 必填-支付宝根证书 路径
                'alipay_root_cert_path'   => config_path('cert') . 'alipayRootCert.crt',
                'return_url'              => 'https://h5.paihome.cn',
                'notify_url'              => 'https://massage.paihome.cn/api/pay/aliNotify',
                // 选填-第三方应用授权token
                'app_auth_token'          => '',
                // 选填-服务商模式下的服务商 id，当 mode 为 Pay::MODE_SERVICE 时使用该参数
                'service_provider_id'     => '',
                // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SANDBOX, MODE_SERVICE
                'mode'                    => \Yansongda\Pay\Pay::MODE_NORMAL,
            ]
        ],
        'wechat' => [
            'default' => [
                // 必填-商户号，服务商模式下为服务商商户号
                'mch_id'                  => '1603617287',
                // 必填-商户秘钥
                'mch_secret_key'          => 'ypGD832iuEyjn4pYyu9Q6MvBmgsFWg81',
                // 必填-商户私钥 字符串或路径
                'mch_secret_cert'         => config_path('cert') . 'apiclient_key.pem',
                // 必填-商户公钥证书路径
                'mch_public_cert_path'    => config_path('cert') . 'apiclient_cert.pem',
                // 必填
                'notify_url'              => 'http://mp.qubus.cn//api/pay/wxNotify',
                // 选填-公众号 的 app_id
                'mp_app_id'               => 'wx8faf55e130f9919f',
                // 选填-小程序 的 app_id
                'mini_app_id'             => 'wx1b8b7a885f2d85b4',
                // 选填-app 的 app_id
                'app_id'                  => '',
                // 选填-合单 app_id
                'combine_app_id'          => '',
                // 选填-合单商户号
                'combine_mch_id'          => '',
                // 选填-服务商模式下，子公众号 的 app_id
                'sub_mp_app_id'           => '',
                // 选填-服务商模式下，子 app 的 app_id
                'sub_app_id'              => '',
                // 选填-服务商模式下，子小程序 的 app_id
                'sub_mini_app_id'         => '',
                // 选填-服务商模式下，子商户id
                'sub_mch_id'              => '',
                // 选填-微信公钥证书路径, optional，强烈建议 php-fpm 模式下配置此参数
                'wechat_public_cert_path' => [
                    '676F5E42C9C3B803F61FEF721216444C994A38DA' => config_path('cert') . 'wechatpay_676F5E42C9C3B803F61FEF721216444C994A38DA.pem',
                ],
                // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SERVICE
                'mode'                    => \Yansongda\Pay\Pay::MODE_NORMAL,
            ]
        ],
        'logger' => [
            'enable'   => false,
            'file'     => runtime_path().'/logs/alipay.log',
            'level'    => 'debug',   // 建议生产环境等级调整为 info，开发环境为 debug
            'type'     => 'single', // optional, 可选 daily.
            'max_file' => 30,       // optional, 当 type 为 daily 时有效，默认 30 天
        ],
        'http'   => [ // optional
            'timeout'         => 5.0,
            'connect_timeout' => 5.0,
            // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
        ]
    ],


];
